package uk.co.magiclantern.mvc.view
{
	import uk.co.magiclantern.mvc.imvc.*
	import flash.display.Sprite;
	
	
	public class View extends Sprite implements IView
	{
		
		private var _controller:IController;
		private var _model:IModel;
		
		
		public function View(m:IModel)
		{
			trace ("The View");
			model = m;
			//createView();
		}
		
		public function createView():void
		{
			trace ("Creating The View");
		}
		   
	 	public function update(o:Object):void
	 	{
	 		trace ("Updating");
	 		trace(o)
	 	}
	 	
		public function destroy ():void
		{
			
		}
		
	 	public function set model(m:IModel):void
	 	{
	 		_model = m;
	 	}
	 	
	 	public function get model():IModel
	 	{
	 		return _model;
	 	}
	 	
	 	public function set controller(m:IController):void
	 	{
	 		_controller = m;
	 	}
	 	
	 	public function get controller():IController
	 	{
	 		return _controller;
	 	}
	 	
	}
	
}